﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity
{
    public class StockInEntity
    {
    }
    public class InboundQueryResult
    {
        public int warehouse_receipt_id {  get; set; }
        /// <summary>
        /// 入库单号
        /// </summary>
        public string purchase_order_no { get; set; }

        /// <summary>
        /// 入库类型ID（需映射为字典文本）
        /// </summary>
        public int document_statu { get; set; }
        /// <summary>
        /// 单据状态（需映射为字典文本）
        /// </summary>
        public int status { get; set; }

        /// <summary>
        /// 入库日期
        /// </summary>
        public DateTime purchase_date { get; set; }

        /// <summary>
        /// 仓库名称
        /// </summary>
        public string contact_person { get; set; }

        /// <summary>
        /// 关联单号
        /// </summary>
        public string contact_information { get; set; }

        /// <summary>
        /// 入库货品（多货品名称拼接）
        /// </summary>
        public string organizations_id { get; set; }

        /// <summary>
        /// 经办人
        /// </summary>
        public string purchaser { get; set; }

        /// <summary>
        /// 入库总数量
        /// </summary>
        public int totalQuantity { get; set; }

        /// <summary>
        /// 入库总金额
        /// </summary>
        public decimal totalAmount { get; set; }

        /// <summary>
        /// 制单人
        /// </summary>
        public string productNames { get; set; }

        /// <summary>
        /// 所在部门
        /// </summary>
        public string create_by { get; set; }

        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime create_time { get; set; }

        /// <summary>
        /// 审核人
        /// </summary>
        public string reviewer { get; set; }

        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? review_time { get; set; }
    }

    /// <summary>
    /// 入库单查询参数
    /// </summary>
    public class InboundQueryParam
    {
        /// <summary>
        /// 入库单号（模糊查询）
        /// </summary>
        public string WarehouseReceiptNo { get; set; }

        /// <summary>
        /// 入库类型ID
        /// </summary>
        public int? DocumentStatu { get; set; }

        /// <summary>
        /// 单据状态
        /// </summary>
        public string Status { get; set; }

        /// <summary>
        /// 开始日期
        /// </summary>
        public DateTime? StartDate { get; set; }

        /// <summary>
        /// 结束日期
        /// </summary>
        public DateTime? EndDate { get; set; }

        /// <summary>
        /// 页码
        /// </summary>
        public int PageIndex { get; set; } = 1;

        /// <summary>
        /// 页大小
        /// </summary>
        public int PageSize { get; set; } = 10;
    }
}
